<?php
/**
 * Created by PhpStorm.
 * User: function
 * Date: 2018-04-13
 * Time: 0:26
 */

namespace app\api\controller\v1;
use app\common\controller\Api;
use app\common\logic\CategoryLogic;
class Category extends Api
{
    protected $authenticate = ['only'=>'fdsa'];
   
    
    public function getFoldList(){
        
        $len = paramForm('len')?paramForm('len'):1;
        $moduleid = paramForm('moduleid')?paramForm('moduleid'):1;
       
        $logic = new CategoryLogic();
        $typesRT = $logic->getFoldList($len,$moduleid);
        if(!$typesRT['code']){
            error($typesRT['msg']);
        }
        
        success($typesRT['data']);
        
    }
    
}